package com.toKnow.model.entity;

import java.util.Date;

public class SourceAnswer {
    private Integer id;
    private Integer userId;
    private String userName;
    private Integer sourceCommentId;
    private Integer answerId;
    private String content;
    private Date answerDate;
    private Integer likeNumber;
    private String avatar;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return "SourceAnswer{" +
                "id=" + id +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", sourceCommentId=" + sourceCommentId +
                ", answerId=" + answerId +
                ", content='" + content + '\'' +
                ", answerDate=" + answerDate +
                ", likeNumber=" + likeNumber +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getSourceCommentId() {
        return sourceCommentId;
    }

    public void setSourceCommentId(Integer sourceCommentId) {
        this.sourceCommentId = sourceCommentId;
    }

    public Integer getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Integer answerId) {
        this.answerId = answerId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getAnswerDate() {
        return answerDate;
    }

    public void setAnswerDate(Date answerDate) {
        this.answerDate = answerDate;
    }

    public Integer getLikeNumber() {
        return likeNumber;
    }

    public void setLikeNumber(Integer likeNumber) {
        this.likeNumber = likeNumber;
    }

    public SourceAnswer() {
    }

    public SourceAnswer(Integer id, Integer userId, String userName, Integer sourceCommentId, Integer answerId, String content, Date answerDate, Integer likeNumber) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.sourceCommentId = sourceCommentId;
        this.answerId = answerId;
        this.content = content;
        this.answerDate = answerDate;
        this.likeNumber = likeNumber;
    }
}
